<?php
class Menu_News
{
    
    
    public function doit()
    { 
        
        
        
    $Result = array('type'=>'links', 'items' => array(  
                                                                                              array(
                                                                                              			'title'=>'Все новости',
                                                                                              			'link'=>'news'
                                                                                                        ),
                                                                                                        
                                                                                                 ) );
                                                                                                 
                $News = new News();
                $newsList = $News->getList();                                                                                 
                                                                                                 
                foreach ($newsList as $Item )
                {
                    $Result['items'][] = array('title'=>$Item['Title'],'link'=>'news/view/id/' . $Item['ID'] );
                }
                
                
                return Zend_Json::encode($Result); 
    
    }
}